package com.bd.schedule.quartz;


import org.quartz.*;
import org.springframework.scheduling.quartz.QuartzJobBean;

/**
 * 继承Quartz Job
 */
@DisallowConcurrentExecution
//@PersistJobDataAfterExecution
public abstract class BaseJob extends QuartzJobBean {

    public BaseJob() {
    }

    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        executeTask();
    }

    public  abstract void executeTask();


}
